package com.sticktogether.navigation;

import com.sticktogether.R;
import com.sticktogether.server.ServerCommunication;


/**
 * Walk contains general information of the travelling step.
 * 
 * Note:
 * Some code parts are commented because they are not needed and thus save computing time. 
 * They are not deleted, in case the information will be needed later.
 * 
 * @author 	David Schattel
 * @since 	01.12.2012
 */
public class Walk {

	//private Location start;
	//private Location end;
	//private int duration	= (int)Double.NaN;	// Time in seconds
	//private double distance = Double.NaN;		// Distance in meters
	private String durationText = "NaN";
	private String distanceText = "NaN";
	private String instruction = ServerCommunication.map.getString(R.string.stops);
	
	/**
	 * Walk constructor
	 * 
	 * @param start			Start location (Latitude, Longitude)
	 * @param end			End location (Latitude, Longitude)
	 * @param duration		Duration in seconds
	 * @param durationText	Duration in seconds as String
	 * @param distance		Distance in meters
	 * @param distanceText	Distance in meters as String
	 * @param instruction	Instructions about how and where to travel
	 */
	//public Walk(Location start, Location end, int duration, String durationText, double distance, String distanceText, String instruction){
		//this.start = start;
		//this.end = end;
		//this.duration = duration;
		//this.distance = distance;
	public Walk(String durationText, String distanceText, String instruction){
		this.durationText = durationText;
		this.distanceText = distanceText;
		this.instruction = instruction;
	}
	
	public String getDurationText() {
		return durationText;
	}
	public String getDistanceText() {
		return distanceText;
	}

	public String getInstruction() {
		return instruction;
	}
	
/*	public Location getStartLocation() {
		return start;
	}

	public Location getEndLocation() {
		return end;
	}

	public int getDuration() {
		return duration;
	}

	public double getDistance() {
		return distance;
	}
	*/

}
